package edu.unr.cater.npap.server.locator;

import com.google.web.bindery.requestfactory.shared.Locator;
import edu.unr.cater.npap.client.domain.PlatformUserGroup;
import org.springframework.roo.addon.gwt.RooGwtLocator;
import org.springframework.stereotype.Component;

@RooGwtLocator("edu.unr.cater.npap.client.domain.PlatformUserGroup")
@Component
public class PlatformUserGroupLocator extends Locator<PlatformUserGroup, Integer> {

    public PlatformUserGroup create(Class<? extends edu.unr.cater.npap.client.domain.PlatformUserGroup> clazz) {
        return new PlatformUserGroup();
    }

    public PlatformUserGroup find(Class<? extends edu.unr.cater.npap.client.domain.PlatformUserGroup> clazz, Integer id) {
        return PlatformUserGroup.findPlatformUserGroup(id);
    }

    public Class<edu.unr.cater.npap.client.domain.PlatformUserGroup> getDomainType() {
        return PlatformUserGroup.class;
    }

    public Integer getId(PlatformUserGroup platformUserGroup) {
        return platformUserGroup.getUserGroupId();
    }

    public Class<java.lang.Integer> getIdType() {
        return Integer.class;
    }

    public Object getVersion(PlatformUserGroup platformUserGroup) {
        return platformUserGroup.getVersion();
    }
}
